import ToolActionApi from "@/tool/http/tool-action.js";

let deviceAction = ToolActionApi.init("things_device")

const rule = {
	queryParams: [],
	formOnChange: (watchForm) => {
		return [];
	},
	pageConfig: {},
	metaConfig: {},
	baseField: []
}

export default async function(metadata) {
	rule.metaConfig.device_code = {
		dictList: await deviceAction.dict("name", "code")
	}
	return rule;
}
